﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Inventor2.Master" AutoEventWireup="true" CodeBehind="HospitalSystem.CMDataManager.aspx.cs" Inherits="HospitalSystem.CMDataManager" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<div id="sidebar">
		<ul>
			<li>
				<h2 class="style4">CaseManager DATA</h2>
					<ul>
                        <li><a href="CMDataManager.aspx" class="current">CaseManagerChildData</a></li>
					</ul>
				</li>
			</ul>
        </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <div>
        <asp:Panel ID="Panel2" runat="server">
                

                <h2 class="style4">
                    รายชื่อผู้รับบริการจาก Casemanager</h2>
                

                <br />
                <table align="center">
                    <tr>
                        <td>
                            <asp:GridView ID="CMDataGridView" runat="server" AutoGenerateColumns="False"  
                                ForeColor="#333333" onrowcommand="CMInfoGridView_RowCommand"
                                ShowFooter="True" Style="text-align: left">
                                <Columns>
                                <asp:BoundField DataField="CID" HeaderText="CID" />
                                <asp:TemplateField HeaderText="QAInfo">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="QALnkButton" runat="server" CommandName="ShowQADetails">คลิกเพื่อดูข้อมูล</asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="PlanInfo">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="PlanLnkButton" runat="server" CommandName="ShowPlanDetails">คลิกเพื่อดูข้อมูล</asp:LinkButton>
                                    </ItemTemplate>
                                    <FooterStyle HorizontalAlign="Right" />
                                    <FooterTemplate>
                                        <asp:Button ID="RefreshButton" runat="server" OnClick="RefreshButton_Click" Text="Refesh" />
                                    </FooterTemplate>
                                </asp:TemplateField>
                                </Columns>
                                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                <RowStyle BackColor="#EFF3FB" />
                                <EditRowStyle BackColor="#2461BF" />
                                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                <AlternatingRowStyle BackColor="White" />
                            </asp:GridView>
                            <span class="style1">&nbsp;</span></td>
                    </tr>
                </table>
                </asp:Panel>
    </div>
    <div>
    <asp:Panel ID="ChildDataPanel" runat="server" BorderStyle="None"  BackColor="#DFE6EF"
        GroupingText="ข้อมูลผู้รับบริการ" Width="90%" Visible="False">
        <table>
          
            <tr>
                <td class="style15" style="width: 130px">
                    &nbsp;</td>
                <td class="style17">
                    &nbsp;</td>
                <td class="style37">
                    &nbsp;</td>
                <td class="style16">
                    &nbsp;</td>
                <td class="style16">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style15" style="width: 130px">
                    ชื่อผู้รับบริการ</td>
                <td class="style17">
                    &nbsp;&nbsp;
                    <asp:Label ID="ChildFNameLB" runat="server"></asp:Label>
                </td>
                <td class="style37">
                    &nbsp;</td>
                <td class="style16">
                    นามสกุล</td>
                <td class="style16">
                    <asp:Label ID="ChildLNameLB" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style25" style="width: 130px">
                    เลขประจำตัวประชาชน</td>
                <td class="style25" colspan="2">
                    &nbsp;&nbsp;
                    <asp:Label ID="ChildIDLB" runat="server"></asp:Label>
                </td>
                <td class="style25">
                    &nbsp;</td>
                <td class="style25">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style25" style="width: 130px">
                    หมายเลขPlanNo</td>
                <td class="style25" colspan="2">
                    &nbsp;&nbsp;
                    <asp:Label ID="CMPlanNoLB" runat="server"></asp:Label>
                </td>
                <td class="style25">
                    &nbsp;</td>
                <td class="style25">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style25" style="width: 130px">
                    ชื่อผู้ใช้งาน</td>
                <td class="style25" colspan="2">
                    &nbsp;&nbsp;
                    <asp:Label ID="StaffFNameLB" runat="server"></asp:Label>
                </td>
                <td class="style25">
                    นามสกุล</td>
                <td class="style25">
                    <asp:Label ID="StaffLNameLB" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style25" style="width: 130px">
                    รหัสผู้ใช้งาน</td>
                <td class="style25" colspan="2">
                    &nbsp;&nbsp;
                    <asp:Label ID="StaffIDLB" runat="server"></asp:Label>
                </td>
                <td class="style25">
                    &nbsp;</td>
                <td class="style25">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style25" style="width: 130px">
                    หน่วยงานที่สังกัด</td>
                <td class="style25" colspan="2">
                    &nbsp;&nbsp;
                    <asp:Label ID="HostLB" runat="server"></asp:Label>
                    </td>
                <td class="style25">
                    รหัสหน่วยงาน</td>
                <td class="style25">
                    <asp:Label ID="HostIDLB" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style25" style="width: 130px">
                    วันที่</td>
                <td class="style25" colspan="2">
                    &nbsp;&nbsp;&nbsp;<asp:Label ID="NowDTLB" runat="server"></asp:Label>
                </td>
                <td class="style25">
                    &nbsp;</td>
                <td class="style25">
                    &nbsp;</td>
            </tr>
        </table>
      
    </asp:Panel>
    <asp:Panel ID="QAViewPanel" runat="server" BorderStyle="None"  BackColor="#DFE6EF"
        GroupingText="รายการข้อมูลQuestionnaire" Width="90%" Visible="False">

                        <asp:GridView ID="QADataGridView" runat="server" ForeColor="#333333"
                            AutoGenerateColumns="true" Width="100%" >

                            <RowStyle BackColor="#EFF3FB" />
                                <EditRowStyle BackColor="#2461BF" />
                                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                <AlternatingRowStyle BackColor="White" />
                        </asp:GridView>

    </asp:Panel>
    <asp:Panel ID="PlanViewPanel" runat="server" BorderStyle="None"  BackColor="#DFE6EF"
                        GroupingText="รายการข้อมูลPlan" Width="90%" Visible="False">

                        <asp:GridView ID="PlanDataGridView" runat="server" ForeColor="#333333" Width="100%" >
                            <RowStyle BackColor="#EFF3FB" />
                                <EditRowStyle BackColor="#2461BF" />
                                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                <AlternatingRowStyle BackColor="White" />
                        </asp:GridView>

     </asp:Panel>
    </div>
</asp:Content>
